package com._54programer.rabbitmq.order;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "queue.ordertimeout")
public class OrderListener {

    @RabbitHandler
    public void testListener(String message){
        System.out.println("OrderListener: "+message);
    }

}
